17 COMPACT SETS 63
(3.17.6) (Borel-Lebesgue theorem). In order that a subset of the real
line be relatively compact, a necessary and sufficient condition is that it be
bounded.

In view of (3.17.1), (3.17.4), and (3.17.5), all we have to do is to
prove any closed interval [a, b] is precompact. For each integer /?, let xk =
a + k(b - a) In (Q^k^n);
then the open intervals of center xk and length
2/n form a covering of [a, b]. Q.E.D.

Remark. If, on the real line, we consider the two distances dl9 d2 defined
in Section 3.14, it follows from (3.17.1) that E2 is not precompact, whereas
EJ is precompact, since the extended real line R, being homeomorphic to the
closed interval [-1, 4-1] of R (3.12), is compact by (3.17.6).

(3.17.7) A necessary and sufficient condition that a subset A of a metric
space E be relatively compact is that every sequence of points of A have a
cluster value in
E.

The condition is obviously necessary, by (3.16.1). Conversely, let us
suppose it is satisfied, and let us prove that every sequence (jcrt) of points of
A has a cluster value in E (which will therefore be in A by (3.13.7)), and hence
that A is compact by (3.16.1). For each /?, it follows from the definition of
closure that there exists yneA such that d(xn,yn)^ l/n. By assumption,
there is a subsequence (yni) which converges to a point a; from the triangle
inequality it follows that (xnk) converges also to a. Q.E.D.

(3.17.8) The union of two relatively compact sets is relatively compact.
From (3.8.8) it follows that we need only prove that the union of two
compact sets A, B is compact. Let (UA)A e L be an open covering of the sub-
space A u B; each UA can be written (A u B) n VA, where VA is open in E,
by (3.10.1). By assumption, there is a finite subset H (resp. K) of L such
that the subfamily (A nVA)A6H(resp. (B n V;)AeK) is a covering of A (resp. B).
It is then clear that the family ((A n B) n VA)A eH w K is a covering of A u B.

(3.17.9) Let f be a continuous mapping of a metric space E into a metric
space E'. For every compact
(resp. relatively compact) subset A of E, /(A)
is compact, hence closed in E' (resp. relatively compact in E').